<?php 
//create by fu
namespace app\api\model;

 use app\api\model\BaseModel;

/**
 * 
 */
class BannerItem extends BaseModel
{
	protected $hidden = ['id','img_id','delete_time','banner_id','update_time'];
	public function img(){
		//一对一     belongsTo(从表名，主表字段，从表字段)
		return $this->belongsTo('Image','img_id','id');
	}
	 
}



 ?>